package com.wavecoler.professor.servlets;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
import java.util.StringTokenizer;
import java.util.logging.Logger;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.*;
import com.wavecoler.professor.dao.TeamDAO;
import com.wavecoler.professor.dao.ProblemDAO;

@SuppressWarnings("serial")
public class getproblemdescription extends HttpServlet {

	private static final Logger log = Logger
			.getLogger(getproblemdescription.class.getName());

	@Override
	protected void doPost(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {

		log.info(request.getParameter("problemname").toString());
//		String problemDescription = ProblemDAO.getProblemDescription(request
//				.getParameter("problemname").toString());
//		
//		PrintWriter out = response.getWriter();
//		if (problemDescription != null)
//			out.println("<textarea cols=40 rows=5>" + problemDescription
//					+ "</textarea>");
//		else
//			log.info("No parameter received");
		

	}

	protected void doGet(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		doPost(request, response);
	}
}
